<?php

namespace app\common\model;

use think\Model;
use Exception;

class Member extends Model
{

    protected $pk = 'member_id';

    public function handler($data)
    {
        try {
            if (empty($data)) return null;
            $data['add_time_handler'] = handler_time($data['add_time']);
            $data['add_time_text'] = format_time($data['add_time']);
            return $data;
        } catch (Exception $e) {
            return $data;
        }
    }

}
